package icu.funkye.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import icu.funkye.entity.Product;
import icu.funkye.mapper.ProductMapper;
import icu.funkye.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {
    @Autowired
    ProductMapper productMapper;

    @Override
    public Product selectOnewById(Integer request) {
        return productMapper.selectOnewById(request);
    }

    @Override
    public Integer reduceOne(Integer request) {
        return productMapper.reduceOne(request);
    }
}
